  <!--  <div class="sideright">
    Advertisement space    

     <img src="<?php echo URL_BASE?>/images/ad_banner.gif" />
      <img src="<?php echo URL_BASE?>/images/ad_banner.gif" />
    </div>
    sideright --> 
    <!-- sideright -->

<script type="text/javascript" src="<?php echo site_url('js/jcarousellite_1.0.1c4.js')?>"></script>
<script type="text/javascript">
$(function() {
	$(".newsticker-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		//visible: 10,
        auto:500,
		speed:1000
	});
});
</script>
<div id="right">
<?php if($this->Directory_user_model->check_login()){?>
<p><span class="purple"><a href="<?php echo site_url('directory/panel/index');?>">your banner here .</a></span></p>
<?php }else{?>
<p><span class="purple"><a href="<?php echo site_url('register');?>">your banner here .</a></span></p>
<?php }?>
<?php /*?>
<p><span class="purple"><a href="<?php //echo site_url('banners/action');?>">your banner here .</a></span></p>
<p><span class="purple"><a href="<?php echo site_url('register');?>">register .</a></span></p>
<p><span class="purple"><a href="<?php echo site_url('make_payment');?>">payment .</a></span></p><?php */?>
    <div class="newsticker-jcarousellite"> 
    	<ul>
     <?php   /* right  banner start*/


            $CI =& get_instance();
           $CI->load->model('Banners_model');
           $ban_detail=$CI->Banners_model->displayBanners('1');
           //print_r($ban_detail);
            if(!empty($ban_detail))
           {
            foreach($ban_detail as $ban_detail){  
            ?>
            <li>
				<div class="thumbnail">
			<p>
            <a href="<?php echo base_url()?>banners/processing/<?php echo $ban_detail['ban_id'];?>" target="_blank" title="<?php echo $ban_detail['ban_tag']; ?>">
            <img width="120px" height="60px" src="<?php echo base_url(); ?>uploads/banners/<?php echo $ban_detail['ban_image'] ?>" />
            
            </p>
				</div>
			<!--	<div class="info">
					<a href="http://www.vladstudio.com/wallpaper/?knight_lady">The Knight and the Lady</a>
					<span class="cat">Category: Illustrations</span>
				</div>-->
			
			</li>
            <?php } /*?><div style="margin-top:30px;">
            <a href="<?php echo base_url()?>banners/processing/<?php echo $ban_detail['ban_id'];?>" target="_blank" title="<?php echo $ban_detail['ban_tag']; ?>">
            <img width="200px" src="<?php echo base_url(); ?>uploads/banners/<?php echo $ban_detail['ban_image'] ?>" />
            </a>
            </div>
            <?php */
            // $ban_detail=$CI->Banners_model->insertBannersViews($ban_detail['ban_id']);
           }else{
            $ban_detail=$CI->Banners_model->displayBannersDefault('1');
                if(!empty($ban_detail))
                   {
                    ?>

                    <div style="margin-top:30px;">
                     <a href="<?php echo prep_url($ban_detail['ban_link']);?>" target="_blank" title="<?php echo $ban_detail['ban_tag']; ?>">
                    <img width="190px" src="<?php echo base_url(); ?>uploads/banners/<?php echo $ban_detail['ban_image'] ?>" />
                    </a>
                     </div>
                    <?php
                   }

           }
           
     
       /* right  banner end*/
    ?></ul></div>
   <?php /*?> <p><span class="purple"><a href="<?php echo site_url('banners/action');?>">your banner here .</a></span></p>
    <div class="newsticker-jcarousellite">
	
            <li>
				<div class="thumbnail">
			<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/1367-agency-small.jpg"></a></p>
				</div>
			<!--	<div class="info">
					<a href="http://www.vladstudio.com/wallpaper/?knight_lady">The Knight and the Lady</a>
					<span class="cat">Category: Illustrations</span>
				</div>-->
				<div class="clear"></div>
			</li>
			
            <li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/800-agency-small.gif"></a></p>
				</div>
			
				<div class="clear"></div>
			</li>
            <li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/1306-agency-small.jpg"></a></p>
				</div>
			
				<div class="clear"></div>
			</li>
			<li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/712-agency-small.jpg"></a></p>
				</div>
			
				<div class="clear"></div>
			</li>
			<li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/387-agency-small.gif"></a></p>
				</div>
				
				<div class="clear"></div>
			</li>
			<li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/800-agency-small.gif"></a></p>
				</div>
			
				<div class="clear"></div>
			</li>
            <li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/800-agency-small.gif"></a></p>
				</div>
			
				<div class="clear"></div>
			</li>
            <li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/1306-agency-small.jpg"></a></p>
				</div>
			
				<div class="clear"></div>
			</li>
			<li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/712-agency-small.jpg"></a></p>
				</div>
			
				<div class="clear"></div>
			</li>
			<li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/387-agency-small.gif"></a></p>
				</div>
				
				<div class="clear"></div>
			</li>
			<li>
				<div class="thumbnail">
				<p><a href="#"><img align="bottom" width="140" alt="World's No.1 Escort Agency" class="escort-thumbnail" src="<?php echo site_url();?>uploads/banners/800-agency-small.gif"></a></p>
				</div>
			
				<div class="clear"></div>
			</li>
        </ul>
 
</div>*/?>
</div>